/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.winner.lps.modules.app.service;

import com.winner.lps.common.persistence.Page;
import com.winner.lps.common.service.CrudService;
import com.winner.lps.modules.app.dao.AppDepartmentDao;
import com.winner.lps.modules.app.entity.AppDepartment;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 单位管理Service
 *
 * @author 程少威
 * @version 2017-04-09
 */
@Service
@Transactional(readOnly = true)
public class AppDepartmentService extends CrudService<AppDepartmentDao, AppDepartment> {

    public AppDepartment get(String id) {
        return super.get(id);
    }

    public List<AppDepartment> findList(AppDepartment appDepartment) {
        return super.findList(appDepartment);
    }

    public Page<AppDepartment> findPage(Page<AppDepartment> page, AppDepartment appDepartment) {
        return super.findPage(page, appDepartment);
    }

    @Transactional(readOnly = false)
    public void save(AppDepartment appDepartment) {
        super.save(appDepartment);
    }

    @Transactional(readOnly = false)
    public void delete(AppDepartment appDepartment) {
        super.delete(appDepartment);
    }

}